//
//  URL.swift
//  osc
//
//  Created by admin on 14/10/28.
//  Copyright (c) 2014年 sinosun. All rights reserved.
//

import Foundation

let response_type = "code"
let client_id = "cwwxVFwXXM1S3tckX7ec"
let state = "xyz"
let redirect_uri = "http://my.oschina.net/lucasz"
let baseUrl = "http://www.oschina.net"
let oauth2_authorize = baseUrl + "/action/oauth2/authorize"

let page_sise = 20

let oauth2_token = baseUrl + "/action/openapi/token"
let client_secret = "ZaIIwQirSzf0JGGww4rd76gW47MQ3ikp"
let grant_type = "authorization_code"
let dataType = "json"
//var access_token = "8776a188-91f5-47b7-b245-d4ad9e0d983a" as NSObject
var access_token = app.token!.access_token as NSObject


let api_news_list = baseUrl + "/action/openapi/news_list"
let api_news_detail = baseUrl + "/action/openapi/news_detail"

let api_favorite_add = baseUrl + "/action/openapi/favorite_add"
let api_favorite_remove = baseUrl + "/action/openapi/favorite_remove"


let api_blog_comment_list = baseUrl + "/action/openapi/blog_comment_list"
let api_blog_comment_pub = baseUrl + "/action/openapi/blog_comment_pub"
let api_blog_comment_reply = baseUrl + "/action/openapi/blog_comment_reply"
let api_user_blog_delete = baseUrl + "/action/openapi/user_blog_delete"

let api_comment_list = baseUrl + "/action/openapi/comment_list"
let api_comment_pub = baseUrl + "/action/openapi/comment_pub"
let api_comment_reply = baseUrl + "/action/openapi/comment_reply"
let api_comment_delete = baseUrl + "/action/openapi/comment_delete"


let api_post_list = baseUrl + "/action/openapi/post_list"
let api_post_detail = baseUrl + "/action/openapi/post_detail"
let api_post_pub = baseUrl + "/action/openapi/post_pub"

